package com.dk.mapper;

import com.dk.pojo.SysAutoCodePart;
import com.dk.pojo.SysAutoCodePartExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

public interface SysAutoCodePartMapper {
    int countByExample(SysAutoCodePartExample example);

    int deleteByExample(SysAutoCodePartExample example);

    int deleteByPrimaryKey(Long partId);

    int insert(SysAutoCodePart record);

    int insertSelective(SysAutoCodePart record);

    List<SysAutoCodePart> selectByExample(SysAutoCodePartExample example);

    SysAutoCodePart selectByPrimaryKey(Long partId);

    int updateByExampleSelective(@Param("record") SysAutoCodePart record, @Param("example") SysAutoCodePartExample example);

    int updateByExample(@Param("record") SysAutoCodePart record, @Param("example") SysAutoCodePartExample example);

    int updateByPrimaryKeySelective(SysAutoCodePart record);

    int updateByPrimaryKey(SysAutoCodePart record);

    void deleteAllPart(@Param("ids") List<String> ids);

    List<SysAutoCodePart> selectByRuleId(@Param("ruleId") Long ruleId);

    String selectByPartTypeAndRuleId(@Param("partType") String partType, @Param("ruleId") Long ruleId);
}